/*
 * LogsCargueGestionHelper.java
 *
 * Created on 12 de diciembre de 2006, 05:33 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.logsgestion.carguegestion.helper;

import com.src.computec.logsgestion.base.helper.BaseHelper;
import com.src.computec.logsgestion.carguegestion.dao.BaseLogsCargueGestionDAO;
import com.src.computec.logsgestion.carguegestion.dto.LogCargueGestionDto;
import com.src.computec.logsgestion.carguegestion.exception.LogsCargueGestionException;
import java.util.List;

/**
 *
 * @author jlperea
 */
public class LogsCargueGestionHelper extends BaseHelper
{
    
    /** Creates a new instance of CargueHelper */
    public LogsCargueGestionHelper() {
    }
    
    public List getProveedoresEmpresasMensajeria() throws LogsCargueGestionException {
        try {
            BaseLogsCargueGestionDAO dao = (BaseLogsCargueGestionDAO) this.getFactoryDAO().getLogsCargueGestionDAO();
            return dao.getProveedoresEmpresasMensajeria();
        }
        catch (Exception e) {
            throw new LogsCargueGestionException("LogsCargueGestionHelper:getProveedoresEmpresasMensajeria: " + e.toString());
        }
    }
    
    public List getLogsCargueGestionByBusqueda(LogCargueGestionDto dto) throws LogsCargueGestionException {
        try {
            BaseLogsCargueGestionDAO dao = (BaseLogsCargueGestionDAO) this.getFactoryDAO().getLogsCargueGestionDAO();
            return dao.getLogsCargueGestionByBusqueda(dto);
        }
        catch (Exception e) {
            throw new LogsCargueGestionException("LogsCargueGestionHelper:getLogsCargueGestionByBusqueda: " + e.toString());
        }
    }
}